package com.onesports.intelligent.k12.polarlight.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onesports.intelligent.k12.polarlight.domain.entity.sys.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色MAPPER
 *
 * @author Wsy
 **/
@Mapper
public interface RoleMapper extends BaseMapper<Role> {


    int updateMemberAmount(@Param("roleIds") List<String> roleIds, @Param("num") int num);

    long getSuperCountByAccountId(@Param("accountId") String accountId);

    /**
     * 判断是否超管账号
     * @param accountId 账号id
     * @return
     */
    boolean isSuper(@Param("accountId") String accountId);
}
